﻿using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace MG1
{
    public class ConfigSection
    {
        public GameSettingsSection Settings;
        public float Zoom = 1;

        public ConfigSection(GameSettingsSection _settings)
        {
            Settings = _settings;
            UpdateZoom();
        }

        public void UpdateZoom()
        {
            if (Settings == null)
                return;

            float smallestDimension = Settings.ScreenHeight >= Settings.ScreenWidth ? Settings.ScreenWidth : Settings.ScreenHeight;
            Zoom = smallestDimension / 700f;
        }
    }

    public class GameSettingsSection
    {
        public float MenuScale;
        public int ScreenWidth;
        public int ScreenHeight;
        public bool Bloom;
        public bool vSync;
        public bool FixedTimeStep;
        public bool FullScreen;
        public int GoreLevel; //0=green, 1=blody, 2=hippy

        public GameSettingsSection()
        {
        }
    }
}
